import request from '@/utils/request';

// 查询专属指标列表
export function list(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator',
		method: 'post',
		data: data,
	});
}

// 新增专属指标
export function add(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator/save',
		method: 'post',
		data: data,
	});
}

// 修改专属指标
export function edit(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator',
		method: 'put',
		data: data,
	});
}

// 删除专属指标
export function remove(ids: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator/delete/' + ids,
		method: 'delete',
	});
}

// 批量修改专属指标
export function editBatch(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/management/exclusiveIndicator/batchEdit',
		method: 'post',
		data: data,
	});
}
